<?php
#region CODE
    use Gotcha\App\Framework\Controller;
    use Gotcha\App\Extensions\GotchaThemesExtension;
    use Gotcha\App\Types\String;

    $framework = new Controller();

    if(isset($_SESSION['userId'])) {
        $html = sprintf('<div style="position: fixed; left: 0; top: 0; background: #000; width: 100px; height: 20px; color: #fff; line-height: 20px;"><a href="%s" style="color: #fff; font-weight: bold;">Administracja</a></div>', $framework->UrlContent('/Admin'));
        echo $html;
    }
#endregion
?>

    <div id="layout-wrapper">
        <header id="layout-header">
            <div id="layout-logo">
                <a href="<?= $framework->UrlContent('/'); ?>">
                    <img alt="Jasminum - Logo" title="Jasminum - Strona Główna" src="<?= $framework->UrlContent('/Themes/Jasminum.Theme/Styles/Images/logo.png'); ?>">
                </a>
            </div>
            <?php GotchaThemesExtension::getZoneContent(new String('Header')); ?>
            <div id="jasminumFacebook">
                <h2>Polub nas na Facebook.com!</h2>
                <a target="_blank" href="https://pl-pl.facebook.com/SiedliskoJasminum">Facebook.com</a>
            </div>
        </header>
        <div id="layout-navigation">
            <nav>
                <ul>
                    <li>
                        <img src="<?= $framework->UrlContent('/Themes/Jasminum.Theme/Styles/Images/mainmenu/menu_left.png'); ?>">
                    </li>
                    <li>
                        <a href="<?= $framework->UrlContent('/hotel'); ?>" title="Hotel">
                            <img src="<?= $framework->UrlContent('/Themes/Jasminum.Theme/Styles/Images/mainmenu/menu_hotel_norm.jpg'); ?>" alt="Hotel" onmouseover="this.src='<?= $framework->UrlContent('/Themes/Jasminum.Theme/Styles/Images/mainmenu/menu_hotel_rollover.jpg'); ?>';" onmouseout="this.src='<?= $framework->UrlContent('/Themes/Jasminum.Theme/Styles/Images/mainmenu/menu_hotel_norm.jpg'); ?>';">
                        </a>
                    </li>
                    <li>
                        <a href="<?= $framework->UrlContent('/restauracja'); ?>" title="Restauracja">
                            <img src="<?= $framework->UrlContent('/Themes/Jasminum.Theme/Styles/Images/mainmenu/menu_restauracja_norm.jpg'); ?>" alt="Restauracja" onmouseover="this.src='<?= $framework->UrlContent('/Themes/Jasminum.Theme/Styles/Images/mainmenu/menu_restauracja_rollover.jpg'); ?>';" onmouseout="this.src='<?= $framework->UrlContent('/Themes/Jasminum.Theme/Styles/Images/mainmenu/menu_restauracja_norm.jpg'); ?>';">
                        </a>
                    </li>
                    <li>
                        <a href="<?= $framework->UrlContent('/sale-jasminum'); ?>" title="Sale Jasminum">
                            <img src="<?= $framework->UrlContent('/Themes/Jasminum.Theme/Styles/Images/mainmenu/menu_salakonferencyjna_norm.jpg'); ?>" alt="Sale Jasminum" onmouseover="this.src='<?= $framework->UrlContent('/Themes/Jasminum.Theme/Styles/Images/mainmenu/menu_salakonferencyjna_rollover.jpg'); ?>';" onmouseout="this.src='<?= $framework->UrlContent('/Themes/Jasminum.Theme/Styles/Images/mainmenu/menu_salakonferencyjna_norm.jpg'); ?>';">
                        </a>
                    </li>
                    <li>
                        <a target="_blank" href="http://www.gilgotki.com/g.php?g=zaq1@wsx&show=all" title="Księga gości">
                            <img src="<?= $framework->UrlContent('/Themes/Jasminum.Theme/Styles/Images/mainmenu/menu_ksiegagosci_norm.jpg'); ?>" alt="Księga gości" onmouseover="this.src='<?= $framework->UrlContent('/Themes/Jasminum.Theme/Styles/Images/mainmenu/menu_ksiegagosci_rollover.jpg'); ?>';" onmouseout="this.src='<?= $framework->UrlContent('/Themes/Jasminum.Theme/Styles/Images/mainmenu/menu_ksiegagosci_norm.jpg'); ?>';">
                        </a>
                    </li>
                    <li>
                        <a href="<?= $framework->UrlContent('/kontakt'); ?>" title="Kontakt">
                            <img src="<?= $framework->UrlContent('/Themes/Jasminum.Theme/Styles/Images/mainmenu/menu_kontakt_norm.jpg'); ?>" alt="Kontakt" onmouseover="this.src='<?= $framework->UrlContent('/Themes/Jasminum.Theme/Styles/Images/mainmenu/menu_kontakt_rollover.jpg'); ?>';" onmouseout="this.src='<?= $framework->UrlContent('/Themes/Jasminum.Theme/Styles/Images/mainmenu/menu_kontakt_norm.jpg'); ?>';">
                        </a>
                    </li>
                    <li>
                        <img src="<?= $framework->UrlContent('/Themes/Jasminum.Theme/Styles/Images/mainmenu/menu_right.png'); ?>">
                    </li>
                </ul>
                <!-- BANNER -->
                <div></div>
                <!-- BANNER END -->
            </nav>
        </div>
        <div id="layout-content" class="clearfix">
            <?php if(!is_null(GotchaThemesExtension::isNullOrEmptyZone(new String('AsideFirst')))): ?>
            <div id="layout-aside-first">
                <aside id="aside-first">
                    <?php GotchaThemesExtension::getZoneContent(new String('AsideFirst')) ?>
                </aside>
            </div>
            <?php endif; ?>
            <div id="layout-article" class="<?php echo (is_null(GotchaThemesExtension::isNullOrEmptyZone(new String('AsideFirst')))) ? 'one-column' : '' ?>">
                <article id="main-article">
                    <?php GotchaThemesExtension::getZoneContent(new String('Content')) ?>
                </article>
                <article>
                    <?php GotchaThemesExtension::Content(); ?>
                </article>
            </div>
            <?php if (!is_null(GotchaThemesExtension::isNullOrEmptyZone(new String('AfterContent')))): ?>
            <div class="clearfix"></div>
            <div id="layout-after-content">
                <?php GotchaThemesExtension::getZoneContent(new String('AfterContent')) ?>
            </div>
            <?php endif; ?>
        </div>
        <?php GotchaThemesExtension::Foot() ?>
    </div>
